-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Cluster.Sharding ActorInitializationException spec #5999
Add Cluster.Sharding ActorInitializationException spec #5999
Conversation
… exceptions thrown from entity constructor and PreStart method
|
||
var settings = ClusterShardingSettings.Create(Sys); | ||
var tuning = settings.TuningParameters; | ||
settings = settings.WithTuningParameters(new TuningParameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very bad coding experience. We need to at least add a Copy()
method to TuningParameter
class so no one should be forced to write this. Or use the record feature in .NET 5.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree. Can't go record
until we drop .NET Standard 2.0 support, which isn't slated until 2.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - port this to 1.5 also.
Looks like this test fails under some conditions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have an intermittent test failure.
Add spec to make sure that Cluster.Sharding can survive any transient exceptions thrown from entity constructor and PreStart method